sdvalueenum module¶
-
class
sd.api.sdvalueenum.SDValueEnum(APIContext, handle, *args, **kwargs)¶ Bases:
sd.api.sdvalue.SDValue-
get() → int¶ Get the value as int
-
getClassName() → str¶ Returns the most specific name of the class this APIObject is
-
getType() → Optional[sd.api.sdtype.SDType]¶ Get the value type as string
-
getValueId() → str¶ Get the value identifier
-
release() → None¶ Releases an APIObject
-
static
sFromValue(enumTypeId: str, enumValue: int) → sd.api.sdvalueenum.SDValueEnum¶ Create new value from the specified enum type Id
- Parameters
enumTypeId – The name of the enum type Id
enumValue – The value of the enum
-
static
sFromValueId(enumTypeId: str, enumValueId: str) → sd.api.sdvalueenum.SDValueEnum¶ Create new value from the specified enum value identifier
- Parameters
enumTypeId – The name of the enum type
enumValueId – The identifier of the enum value
-